#if !defined(AFX_MEGADRAWERADDRESS_H__A679A5A3_12DF_45D1_869D_546FFDABF7F6__INCLUDED_)
#define AFX_MEGADRAWERADDRESS_H__A679A5A3_12DF_45D1_869D_546FFDABF7F6__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// MegaDrawerAddress.h : header file
//
#include "../GUI/MegaDrawer.h"
#include "../GUI/MegaButton.h"
#include "../GUI/MegaListBox.h"
#include "../GUI/MegaStatic.h"
#include "../RMSLib/Info.h"

/////////////////////////////////////////////////////////////////////////////
// CMegaDrawerAddress window

class CMegaDrawerAddress : public CMegaDrawer
{
// Construction
public:
	CMegaDrawerAddress();

// Attributes
public:

// Operations
public:
	virtual void SetBitmaps(UINT uiSkinSingle, UINT uiSkinDouble, UINT uiSkinSingleUn, UINT uiSkinDoubleUn);

	void SetSites(map<CString, CSite> * pSites);
	CString GetSelectedSite();
	CString GetSelectedBuilding();
	CString GetSelectedRoom();
	CString GetSelectedCamera();
	int GetRing();

	void SelectCamera(char * pszCameraSign);


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMegaDrawerAddress)
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CMegaDrawerAddress();

	// Generated message map functions
protected:
	virtual void RepositionControls();
	//{{AFX_MSG(CMegaDrawerAddress)
	afx_msg void OnConnect();
	afx_msg void OnAddressDblClick();
	afx_msg void OnSelectAsCurrent();
	afx_msg void OnCameraChange();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

	CMegaListBox m_List;
	CMegaButton m_btnConnect, m_btnSelect;
	CButton m_btnRing;
	CMegaStatic m_stCurSel;

	map<CString, CSite> * m_pSites;
	char m_strSite[1024], m_strBuilding[1024], m_strRoom[1024], m_strCamera[1024];
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MEGADRAWERADDRESS_H__A679A5A3_12DF_45D1_869D_546FFDABF7F6__INCLUDED_)
